package dms;

import java.util.Date;

/**
 * @file Service.java
 * @version 0.1
 * @author Chris Sewell 10008342
 */
public abstract class Service {
    // <editor-fold defaultstate="collapsed" desc="Attributes">

    private Part[] partsUsed;
    private Date bookedIn;
    private Date bookedOut;
    private int id;
    private double lbrHrsUsed;
    private boolean isComplete;
    private boolean isQuotable;
    //private Customer customer;
    

    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Constructors">
    
    public Service(int id, /*Customer customer,*/ Date dateIn) {
        this.id = id;
        //this.customer = customer;
        this.bookedIn = dateIn;
    }
    
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="Methods">
    public void usePart(Part partUsed)
    {
        
    }
    public void updateLbrHours (double hours)
    {
        
    }
    /**
     * Get the value of bookedOut
     *
     * @return the value of bookedOut
     */
    public Date getBookedOut() {
        return bookedOut;
    }

    /**
     * Set the value of bookedOut
     *
     * @param bookedOut new value of bookedOut
     */
    public void setBookedOut(Date bookedOut) {
        this.bookedOut = bookedOut;
    }


    /**
     * Get the value of bookedIn
     *
     * @return the value of bookedIn
     */
    public Date getBookedIn() {
        return bookedIn;
    }

    /**
     * Set the value of bookedIn
     *
     * @param bookedIn new value of bookedIn
     */
    public void setBookedIn(Date bookedIn) {
        this.bookedIn = bookedIn;
    }
    /**
     * Get the value of isQuotable
     *
     * @return the value of isQuotable
     */
    public boolean getIsQuotable() {
        return isQuotable;
    }

    /**
     * Set the value of isQuotable
     *
     * @param isQuotable new value of isQuotable
     */
    public void setIsQuotable(boolean isQuotable) {
        this.isQuotable = isQuotable;
    }
    private String notes;

    /**
     * Get the value of notes
     *
     * @return the value of notes
     */
    public String getNotes() {
        return notes;
    }

    /**
     * Set the value of notes
     *
     * @param notes new value of notes
     */
    public void setNotes(String notes) {
        this.notes = notes;
    }

    /**
     * Get the value of isComplete
     *
     * @return the value of isComplete
     */
    public boolean getIsComplete() {
        return isComplete;
    }

    /**
     * Set the value of isComplete
     *
     * @param isComplete new value of isComplete
     */
    public void setIsComplete(boolean isComplete) {
        this.isComplete = isComplete;
    }

    /**
     * Get the value of id
     *
     * @return the value of id
     */
    public int getId() {
        return id;
    }

    /**
     * Set the value of id
     *
     * @param id new value of id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * Get the value of partsUsed
     *
     * @return the value of partsUsed
     */
    public Part[] getPartsUsed() {
        return partsUsed;
    }

    /**
     * Set the value of partsUsed
     *
     * @param partsUsed new value of partsUsed
     */
    public void setPartsUsed(Part[] partsUsed) {
        this.partsUsed = partsUsed;
    }
    

    /**
     * Get the value of lbrHrsUsed
     *
     * @return the value of lbrHrsUsed
     */
    public double getLbrHrsUsed() {
        return lbrHrsUsed;
    }

    /**
     * Set the value of lbrHrsUsed
     *
     * @param lbrHrsUsed new value of lbrHrsUsed
     */
    public void setLbrHrsUsed(double lbrHrsUsed) {
        this.lbrHrsUsed = lbrHrsUsed;
    }
    // </editor-fold>
}